<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>黑马面面</title>
    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/index.css">
    <link rel="stylesheet" href="./css/swiper-bundle.min.css">
</head>

<body>
    <section class="warp">
        <!-- 头部部分 -->
        <div class="header">黑马面面</div>
        <!-- 导航栏部分 -->
        <div class="nav">
            <a href="#" class="item">
                <img src="icons/icon1.png" alt="">
                <span>HR面试</span>
            </a>
            <a href="#" class="item">
                <img src="icons/icon2.png" alt="">
                <span>笔试</span>
            </a>
            <a href="#" class="item">
                <img src="icons/icon3.png" alt="">
                <span>技术面试</span>
            </a>
            <a href="#" class="item">
                <img src="icons/icon4.png" alt="">
                <span>模拟面试</span>
            </a>
            <a href="#" class="item">
                <img src="icons/icon5.png" alt="">
                <span>面试技巧</span>
            </a>
            <a href="#" class="item">
                <img src="icons/icon6.png" alt="">
                <span>薪资查询</span>
            </a>
        </div>
        <!-- go模块 -->
        <div class="go">
            <img src="./images/go.png" alt="">
        </div>
    </section>
    <!-- 就业指导模块 -->
    <section class="content">
        <div class="con-hd">
            <h4>
                <span class="icon"><img src="./icons/con-hd.png" alt=""></span> 就业指导
            </h4>
            <a href="#" class="more">更多>></a>
        </div>
        <!-- 旋转木马轮播图模块 -->
        <div class="get_job_focus">
            <!-- Swiper -->
            <div class="swiper-container get_job_fo">
                <div class="swiper-wrapper">
                    <div class="swiper-slide">
                        <a href="#"><img src="./images/pic.png" alt=""></a>
                        <p>老师教你应对面试技巧</p>
                    </div>
                    <div class="swiper-slide">
                        <a href="#"><img src="./images/pic.png" alt=""></a>
                        <p>老师教你应对面试技巧</p>
                    </div>
                    <div class="swiper-slide">
                        <a href="#"><img src="./images/pic.png" alt=""></a>
                        <p>老师教你应对面试技巧</p>
                    </div>
                </div>
                <!-- Add Pagination  添加页面分页器 -->
                <!-- 这里不需要小圆点，注释掉 -->
                <!-- <div class="swiper-pagination"></div> -->
            </div>
            <!-- 根据需要把箭头部分从swiper-container旋转轮播部分中拿出 -->
            <!-- Add Arrows  添加左右箭头 -->
            <div class="swiper-button-next"></div>
            <div class="swiper-button-prev"></div>
        </div>
    </section>
    <!-- 充电学习模块 -->
    <section class="content study_con">
        <div class="con-hd">
            <h4>
                <span class="icon"><img src="./icons/con-hd2.png" alt=""></span> 充电学习
            </h4>
            <a href="#" class="more">更多>></a>
        </div>
        <!-- 学习轮播图模块 -->
        <div class="study">
            <!-- Swiper -->
            <div class="swiper-container study_fo">
                <div class="swiper-wrapper">
                    <div class="swiper-slide">
                        <img src="./images/pic1.png" alt="">
                        <h5>说低调英语，告别中式英语</h5>
                        <p>156<span>人学习</span></p>
                    </div>
                    <div class="swiper-slide">
                        <img src="./images/pic2.png" alt="">
                        <h5>思维攻略金字塔思维提升写作能力</h5>
                        <p>125<span>人学习</span></p>
                    </div>
                    <div class="swiper-slide">
                        <img src="./images/pic1.png" alt="">
                        <h5>说低调英语，告别中式英语</h5>
                        <p>156<span>人学习</span></p>
                    </div>
                    <div class="swiper-slide">
                        <img src="./images/pic2.png" alt="">
                        <h5>思维攻略金字塔思维提升写作能力</h5>
                        <p>125<span>人学习</span></p>
                    </div>
                </div>
                <!-- Add Pagination -->
                <!-- <div class="swiper-pagination"></div> -->
            </div>
        </div>
    </section>
    <!-- footer底部模块 -->
    <footer class="footer">
        <a href="#" class="item">
            <img src="./icons/home.png" alt="">
            <p>首页</p>
        </a>
        <a href="#" class="item">
            <img src="./icons/ms.png" alt="">
            <p>技术面试</p>
        </a>
        <a href="#" class="item">
            <img src="./icons/net.png" alt="">
            <p>模拟考试</p>
        </a>
        <a href="#" class="item">
            <img src="./icons/user.png" alt="">
            <p>我的主页</p>
        </a>
    </footer>
    <script src="js/index.js"></script>
    <script src="./js/swiper-bundle.min.js"></script>
    <script>
        // 第一个函数里面是就业指导轮播图
        (function() {
            var swiper = new Swiper('.get_job_fo', {
                // slidesPerView表示显示的个数，左边和右边的显示不全，都只显示了一半，可以看成是一个，所以一共显示个数是2
                slidesPerView: 2,
                // spaceBetween表示每一个swiper-slide之间的平面距离，也就是2D时候的左右或者上下距离
                spaceBetween: 30,
                // centeredSlides表示当前选中的swiper-slide是否在中间显示
                centeredSlides: true,
                loop: true,
                // 这里不需要分页器，pagination是分页器的意思
                // pagination: {
                //     el: '.swiper-pagination',
                //     clickable: true,
                // },

                //添加左右箭头  navigation是箭头的意思
                navigation: {
                    nextEl: '.swiper-button-next',
                    prevEl: '.swiper-button-prev',
                },
            });
        })();
        // 第二个是函数轮播图
        (function() {
            // 如果有多个轮播图最好把swiper-container单独起个名字
            var swiper = new Swiper('.study_fo', {
                slidesPerView: 2.2,
                spaceBetween: 20,
                // pagination: {
                //     el: '.swiper-pagination',
                //     clickable: true,
                // },
            });
        })()
    </script>
</body>

</html>